package com.linux.huhx.business.service;

import java.io.FileNotFoundException;

/**
 * @Author: huhx
 * @Date: 2017-12-15 上午 10:08
 * @Desc: 一个简单的测试aspect的实类
 */
public class MyAspectService1 {

    public void serviceMethod() {
        System.out.println("myaspect service1 method.");
    }

    public String returnServiceMethod() {
        return "return huhx.";
    }

    public String throwExceptionMethod() {
        System.out.println("throw exception method.");
        try {
            throw new FileNotFoundException("not found class.");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        return "hello world";
    }

    public String aroundServiceMethod1() {
        System.out.println("around service method.");
        return "huhx";
    }
}
